package cn.wolfcode.wolf2w.business.service;


import cn.wolfcode.wolf2w.business.domain.Strategy;
import cn.wolfcode.wolf2w.business.repository.StrategyRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.io.IOException;
import java.util.List;

@Service
public class StrategyServuice {
    @Autowired
    private StrategyRepository repository;

    /**
     * query 相当于 questioin
     * size=>topK
     * ***/
    public List<Strategy> search(String query,int size) throws IOException {
        return  repository.search(query,size);
    }



}
